#ifndef __TESTPAGE_SCENE_H__
#define __TESTPAGE_SCENE_H__

#include "cocos2d.h"
using namespace cocos2d;


class TestPageLayer:public cocos2d::CCLayer
{

private:
	int NowSpeed;
	int NowIncline;
	int NowTime;


	CCLabelTTF *ttf_poweron;

	CCLabelTTF *ttf_quickstart;
	CCLabelTTF *ttf_start;
	CCLabelTTF *ttf_stop;
	CCLabelTTF *ttf_pause;
	CCLabelTTF *ttf_cooldown;


	CCLabelTTF *ttf_time;
	CCLabelTTF *ttf_speed;
	CCLabelTTF *ttf_incline;


	CCLabelTTF *ttf_time_up;
	CCLabelTTF *ttf_time_down;


	CCLabelTTF *ttf_speed_up;
	CCLabelTTF *ttf_speed_down;

	CCLabelTTF *ttf_incline_up;
	CCLabelTTF *ttf_incline_down;

public:
	~TestPageLayer();
	virtual bool init();
	static cocos2d::CCScene* scene();

	virtual void menuPowerOnCallback(CCObject* pSender);

	virtual void menuQuickStartCallback(CCObject* pSender);
	virtual void menuStartCallback(CCObject* pSender);
	virtual void menuStopCallback(CCObject* pSender);

	virtual void menuPauseCallback(CCObject* pSender);
	virtual void menuCoolDownCallback(CCObject* pSender);


	virtual void menuTimeCallback(CCObject* pSender);
	virtual void menuSpeedCallback(CCObject* pSender);
	virtual void menuInclineCallback(CCObject* pSender);


	virtual void menuTimeUpCallback(CCObject* pSender);
	virtual void menuTimeDownCallback(CCObject* pSender);
	virtual void menuSpeedUpCallback(CCObject* pSender);
	virtual void menuSpeedDownCallback(CCObject* pSender);
	virtual void menuInclineUpCallback(CCObject* pSender);
	virtual void menuInclineDownCallback(CCObject* pSender);


	string AddorDecTime(int mode);
	string AddorDecSpeed(int mode);
	string AddorDecIcline(int mode);



	virtual void menuBackCallback(CCObject* pSender);



	LAYER_NODE_FUNC(TestPageLayer);
};








#endif